package com.example.pharmacypick.mapper;

import com.example.pharmacypick.dto.RecordDto;
import com.example.pharmacypick.pojo.Record;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RecordMapper {

    //查询所有记录
    List<Record> findAllRecords(RecordDto recordDto);

    //插入查询记录
    void addRecord(Record record);

    //根据处方表查出取药记录对象，
    Record findRecordByPrescription(int prescriptionId);
}
